<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Google Maps JavaScript API v3 Example: Info Window Simple</title>
<link href="http://code.google.com/apis/maps/documentation/javascript/examples/default.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="modules/VoteDataCenter/pnajax/ajax_form_project.js"></script>
<!--[ include file="admin_header_menu.htm" ]--><div style="clear:both"></div>
</head>

<!-- Data -->
<fieldset>
  <legend>&nbsp;Project&nbsp;selection&nbsp;</legend>
    <form method=post action="<!--[pnmodurl modname='VoteDataCenter' type='adminform' func='compress' ctrl='Project']-->">
      <span id="form_province">
        <!--[if $smarty.request.form.pro_id]-->
          <!--[selector_object_array_ex 
                modname="VoteDataCenter" 
                class="Province" 
                field="id" 
                displayField="name"  
                name="form[pro_id]" 
                selectedValue=$smarty.request.form.pro_id
                allValue="0"
                allText="ทุกจังหวัด"
                sort="pro_name"
                onChange="getDistrictByProvinceID()"

          ]-->
        <!--[else]-->
          <!--[selector_object_array_ex 
                modname="VoteDataCenter" 
                class="Province" 
                field="id" 
                displayField="name"  
                name="form[pro_id]" 
                selectedValue=$form.id 
                allValue="0"
                allText="ทุกจังหวัด"
                sort="pro_name"
                onChange="getDistrictByProvinceID()"
          ]-->
        <!--[/if]-->
      </span>
      <span id="form_district">
          <!--[if (isset($smarty.request.form.dis_id) || $smarty.request.form.dis_id == 0) && $smarty.request.form.pro_id]-->
            <!--[selector_object_array_ex modname="VoteDataCenter" 
                    class="District" 
                    field="id" 
                    displayField="name"  
                    name="form[dis_id]" 
                    selectedValue=$smarty.request.form.dis_id
                    queryField = dis_pro_id
                    queryValue = $smarty.request.form.pro_id
                    allValue="0"
                    allText="ทุกอำเภอ"
                    sort="dis_name"
                    onChange="getTambonByDistrictID()"
            ]-->
          <!--[else]-->

          <!--[/if]-->
      </span>
      <span id="form_tambon">
          <!--[if $smarty.request.form.dis_id && $smarty.request.form.pro_id && ($smarty.request.form.tam_id || $smarty.request.form.tam_id == 0 )]-->
            <!--[selector_object_array_ex 
                    modname="VoteDataCenter" 
                    class="Tambon" 
                    field="id" 
                    displayField="name"  
                    name="form[tam_id]" 
                    selectedValue=$smarty.request.form.tam_id
                    queryField = tam_dis_id
                    queryValue = $smarty.request.form.dis_id
                    allValue="0"
                    allText="ทุกตำบล"
                    sort="tam_name"
            ]-->
          <!--[else]-->

          <!--[/if]-->
      </span>
      <input type="submit" value="submit">
    </form>
</fieldset><BR>
<!--[if $smarty.request.filename]-->
<fieldset>
  Zip Successful Click <a href="<!--[$smarty.request.filename]-->">here</a> to Download
</fieldset>
<!--[/if]-->
<BR>
</html>

